package uy.edu.fing.pgsegesb.integrity;

import java.text.SimpleDateFormat;

import org.jboss.logging.Logger;

import org.jboss.soa.esb.actions.ActionProcessingFaultException;
import org.jboss.soa.esb.actions.annotation.Process;

import org.jboss.soa.esb.configure.ConfigProperty;
import org.jboss.soa.esb.configure.ConfigProperty.Use;
import org.jboss.soa.esb.message.Message;

public abstract class AbstractIntegrityModule {

	@ConfigProperty(use = Use.OPTIONAL)
	protected String elementToSign;

	@Process
	public abstract void sign(Message message) throws ActionProcessingFaultException;
	
	@Process
	public abstract void validate(Message message) throws ActionProcessingFaultException;
		
	protected static String MARCA = "###";
	protected static SimpleDateFormat sdf = new SimpleDateFormat("dd/MM HH:mm:ss");
}
